package com.lin.pan.server.modules.file.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel("文件妙传接口参数对象实体")
@Data
public class SecUploadFilePO implements Serializable {

    private static final long serialVersionUID = -8884519679878748034L;

    @ApiModelProperty(value = "秒传的父文件ID",required = true)
    @NotBlank(message = "父文件夹的ID不能为空")
    private String parentId;

    @ApiModelProperty(value = "秒传的文件名称",required = true)
    @NotBlank(message = "文件名称不能为空")
    private String filename;

    @ApiModelProperty(value = "秒传的文件唯一标识",required = true)
    @NotBlank
    private String identifier;
}
